package com.lxw.study.creational.factorymethod.case3;

public class LogbackLogger implements Logger {
    private final org.slf4j.Logger logger;

    public LogbackLogger(org.slf4j.Logger logger) {
        this.logger = logger;
    }

    @Override
    public void info(String message) {
        logger.info(LogContextHolder.THREAD_LOCAL.get()+":"+message);
    }

    @Override
    public void error(String message) {
        logger.error(LogContextHolder.THREAD_LOCAL.get()+":"+message);
    }
}
